package com.yy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.yy.mapper.SysFileuploadDao;
import com.yy.model.SysFileuploadEntity;
import com.yy.service.SysFileuploadService;


/**
 * 本地文件上传
 * 
 * @author yy
 * @email 
 * @date 2017-07-18 17:28:48
 */
@Service("sysFileuploadService")
public class SysFileuploadServiceImpl implements SysFileuploadService {
	@Autowired
	private SysFileuploadDao sysFileuploadDao;
	
	@Override
	public SysFileuploadEntity queryObject(Long id){
		return sysFileuploadDao.queryObject(id);
	}
	
	@Override
	public List<SysFileuploadEntity> queryList(Map<String, Object> map){
		return sysFileuploadDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysFileuploadDao.queryTotal(map);
	}
	
	@Override
	public void save(SysFileuploadEntity sysFileupload){
		sysFileuploadDao.save(sysFileupload);
	}
	
	@Override
	public void update(SysFileuploadEntity sysFileupload){
		//sysFileupload.setCreateTime(new Date());
		sysFileuploadDao.update(sysFileupload);
	}
	
	@Override
	public void delete(Long id){
		sysFileuploadDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysFileuploadDao.deleteBatch(ids);
	}
	
}
